#include "Node.hpp"
#include "String.hpp" 
#include <typeinfo>

#ifndef TEXT_HPP
#define TEXT_HPP

namespace xml {

//using namespace std;
class Text : public Node {
	public:
		// Returns the text content as a string.
		const String &str() const;
		// Convenience functions that internally will use RTTI.
		static bool is_Text(const Node *);
		static const Text *to_Text(const Node *);
		void addText (const char *txt);
		 // You could add more to the public interface, if you wanted to.
	private:
		// Private things for your implementation.
	String t_str;
};

}
#endif
